Find Unique Binary String Leetcode Solution Python