Java Simple Solution 100%
\nclass Solution {\n    public int findComplement(int num) {\n        int ans = 0;\n        int p = 0;\n        while(num!=0){\n            if(num%2==0) ans += 
```\nclass Solution {\n    public int findComplement(int num) {\n        int ans = 0;\n        int p = 0;\n        while(num!=0){\n            if(num%2==0) ans += Math.pow(2, p);\n            p++;\n            num /= 2;\n        }\n        \n        return ans;\n    }\n}\n\n```
['Java']