this code is use to find whether a given no is a power of 2 or not.