1. 문제
https://programmers.co.kr/learn/courses/30/lessons/12910
2. 풀이
def solution(arr, divisor):
answer = []
for x in arr:
if x % divisor == 0 :
answer.append(x)
answer.sort()
if len(answer) == 0 :
answer = [-1]
return answer