Given a binary array nums and an integer k, return true if all 1's are at least k places away from each other, otherwise return false.
In other words, for every pair of 1s in the array, there must be at least k elements (zeros) between them.
1 <= nums.length <= 10^50 <= k <= nums.lengthnums[i] is 0 or 1nums = [1,0,0,0,1,0,0,1], k = 2truenums = [1,0,0,1,0,1], k = 2false