Check if a Number is Power of Two
Find the Unique Element in an Array (XOR Trick)
Count Set Bits in an Integer (Brian Kernighan’s Algorithm)