Implement `isPowerOfTwo(n)` returning whether the integer `n` is a power of two.
+ 1 hidden test run on Submit.
n > 0 and n & (n-1) === 0 detects a single set bit in O(1) time.
Run your code to see results.