Concept Flow - Check if Number is Power of Two
Start with number n
Check if n <= 0?
Yes→Return False
No
Compute n & (n-1)
Is result 0?
Yes→Return True
No
Return False
Start with the number, check if positive, then use bitwise AND with n-1 to decide if it's a power of two.
