Used built in function kuch STL ka
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```cpp []\nclass Solution {\npublic:\nbool isPowerOfTwo(int n) {\n    return n > 0 && __builtin_popcount(n) == 1;\n}\n    int smallestNumber(int n) {\n       //n > 0 && (n & (n - 1)) == 0;\n       // n=n+1;\n\n        while(1)\n        {\n            if(isPowerOfTwo(n+1))\n               return n;\n            n++;\n        }\n        return n;\n    }\n};\n```
['C++']