isPowerOfTwo

Returns true if value is a power of two.

Return

Whether the given number is a power of two or not.