Bit Manipulation Leetcode Sql