Python Easy Solution
Code


# Code
```python3 []
class Solution:
    def minChanges(self, n: int, k: int) -> int:
        max_bits = max(n.bit_length(), k.bit_length())
        t=0
        if n==k:
            return 0
        else:
            nb=str(format(n, f'0{max_bits}b'))
            kb=str(format(k, f'0{max_bits}b'))
            for i in range(max_bits):
                if nb[i]=='1' and kb[i]=='0':
                    nb=nb[:i]+'0'+nb[i+1:]
                    t+=1
        return t if nb==kb else -1
```
['Array', 'Bit Manipulation', 'Python', 'Python3']