Given an integer k, fill an array with 0 1 2 ... k-1 0 1 2 ... k-1 ...