Binary String Problem Leetcode