Sponsored
Use these hints if you're stuck. Try solving on your own first.
Each time you find a number 1, check whether or not it is K or more places away from the next one. If it's not, return false.
Solve with full IDE support and test cases