Count Set Bit Leetcode Problems Java