Very Basic Bit Manipulation Leetcode