you give 0indexed binary string s integer minjump maxjump in begin stand index 0 equal 0 you index index j follow condition fulfilledi minjump j mini maxjump slength 1 andsj 0return true reach index slength 1 s false Example 1input s 011010 minjump 2 maxjump 3output trueexplanationin step index 0 index 3 in second step index 3 index 5Example 2Input s 01101110 minjump 2 maxjump 3output false constraints2 slength 105si 0 1s0 01 minjump maxjump slength