Counting Bits Leetcode Solution