Counting Bits Leetcode Solution In C