문제 링크
정답 :
def solution(arr): answer = [] for i in arr: for _ in range(i): answer.append(i) return answer