Given an integer n, write a function to determine if it is a power of two. code example
Example: java is power of 2
boolean result = number > 0 && ((number & (number - 1)) == 0);
boolean result = number > 0 && ((number & (number - 1)) == 0);