Write a function to check whether the number is power of 2 ? function solve( a ){ //write your code here } Login to Submit
Input: 4 Output: true Input: 10 Output: false