Check If All 1's Are at Least Length K Places Away(LeetCode 1437):

Problem