Print N Bit Binary Numbers Leetcode Python