Given an integer , return true if it is a power of 2, otherwise return false. A number is a power of 2 if there exists an integer such that .
For example, returns true (), but returns false.
You know the trick from the previous unit. Can you implement it?