C++ | Bit manipulation | Beats 100 %
Code

# Code
```cpp []
class Solution {
public:
    int minChanges(int n, int k) 
    {
        int res=0;
        for(int i=0;i<32;i++)
        {
            int nb=(n>>i)&1;
            int kb=(k>>i)&1;
            if(kb && !nb)
               return -1;
            res+=nb^kb;   
        }
        return res;
    }
};
```
['C++']