function solution(left, right) {
let answer = 0;
for(let i=left;i<=right;i++){
let count = 0;
for(let j=1;j<=i;j++){
if(i % j === 0) count++;
}
console.log(count)
count % 2 === 0 ? answer += i : answer -= i
}
return answer
}