Print N Bit Binary Numbers Leetcode Problems Python