Generate Binary Numbers Leetcode 1501