링크- https://programmers.co.kr/learn/courses/30/lessons/64065
def solution(s):
answer = []
s = s.replace(",{", "").replace("{", "")
lst = s.split("}")
lst = list(filter(None, lst))
lst = sorted(lst, key=len)
for i in lst:
for j in i.split(",") :
if int(j) not in answer:
answer.append(int(j))
return answer