leetcode bit operation