Is It Power of Two?

Problem


Given an integer, write a function to determine if it is a power of 2. And return a boolean which is True or False.

Example


Given 128,

128 is 2^7 So, that must return True.

Contributed by Erkan Ercan