Generate Binary Numbers Leetcode Solutions Python