스탠다드반 자료조사 - https://nbcssw.tistory.com/23
데일리 루틴
48번 - K번째 수
https://school.programmers.co.kr/learn/courses/30/lessons/42748
function solution(array, commands) {
var answer = [];
for(let i=0; i<commands.length; i++){
let newArr = array.slice(commands[i][0] - 1, commands[i][1]);
let index = newArr.sort((a,b) => a - b)[commands[i][2]-1];
answer.push(index);
}
return answer;
}