Print N Bit Binary Numbers Leetcode Java