Find Unique Binary String Leetcode Solution 1