https://school.programmers.co.kr/learn/courses/30/lessons/70129
counter로 1의 갯수르 새서 이진수로 변환 후 반복.
import collections
def solution(s):
answer = []
delete_zero_count = 0
convert_count = 0
while s != "1":
num_list = collections.Counter(s)
zero_count = num_list["0"]
one_count = num_list["1"]
delete_zero_count += zero_count
s = bin(one_count)[2:]
convert_count+=1
answer = [convert_count,delete_zero_count]
return answer