https://leetcode.com/problems/hamming-distance/
class Solution:
def hammingDistance(self, x, y):
"""
:type x: int
:type y: int
:rtype: int
"""
string = bin(x^y)
res = 0
for i in string:
if i == '1':
res +=1
return res