레벨2 문제 실패
def solution(n):
num = bin(n)[2:]
cnt = num.count('1')
for i in range(n+1, 1000001):
temp = bin(i)[2:]
one = temp.count('1')
if ( cnt == one ):
answer = i
break
return answer