function solution(arr, divisor) { let answer = arr.filter((e,i) => e % divisor === 0).sort((a,b) => a-b); return answer.length === 0 ? [-1] : answer; }