Leetcode Unique Binary String Operation