give binary string s return true long contiguous segment 1s strictly long long contiguous segment 0s s return false otherwisefor example s 110100010 long continuous segment 1s length 2 long continuous segment 0s length 3Note 0s long continuous segment 0s consider length 0 the apply 1 Example 1input s 1101output trueexplanationthe long contiguous segment 1s length 2 1101the long contiguous segment 0s length 1 1101the segment 1s long return trueExample 2input s 111000output falseExplanationThe long contiguous segment 1s length 3 111000the long contiguous segment 0s length 3 111000the segment 1s long return falseexample 3input s 110100010output falseExplanationThe long contiguous segment 1s length 2 110100010the long contiguous segment 0s length 3 110100010the segment 1s long return false constraints1 slength 100si 0 1