Easy Python solution
\ndef bitwiseComplement(self, n: int) -> int:\n        x=""\n        for i in bin(n)[2:]:\n            if i=="1":\n                x+="0"\n            else:\n  
```\ndef bitwiseComplement(self, n: int) -> int:\n        x=""\n        for i in bin(n)[2:]:\n            if i=="1":\n                x+="0"\n            else:\n                x+="1"\n        return int(x,2)\n```
['Python', 'Python3']