https://programmers.co.kr/learn/courses/30/lessons/12943
def solution(num): i=0 while(num != 1.0) : if i >=500 : return -1 break if num%2==0 : num = num//2 i += 1 elif num%2==1 : num = 3*num + 1 i += 1 return i