Unique Solution
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```java []\nclass Solution {\n    public int smallestNumber(int n) {\n        int i=n;\n        while(i>=0){\n            int bit=Integer.bitCount(i);\n            String s=Integer.toBinaryString(i);\n            if(bit==s.length())\n            return i;\n            i++;\n        }\n        return -1;\n    }\n}\n```
['Bit Manipulation', 'Java']