https://programmers.co.kr/learn/courses/30/lessons/12935?language=javascript
function solution(arr) {
let answer = [];
const index = arr.indexOf(Math.min(...arr));
arr.splice(index, 1);
if (arr.length === 0) {
answer = [-1];
} else {
answer = arr;
}
return answer;
}