function solution(arr, divisor) { var answer = []; answer=arr.filter(a=>a%divisor===0); if(answer.length===0) answer=[-1] answer.sort((a,b)=>a-b) return answer; }