import java.util.*;
class Solution {
public int[] solution(int[] num_list, int n) {
// 결과 배열을 초기화
// 결과 배열의 크기는 num_list 길이에서 n을 뺀 값에 1을 더한 크기
int[] answer = new int [num_list.length - n + 1];
// i는 n-1부터 시작하여 num_list 배열의 끝까지 순회
for(int i = n - 1; i < num_list.length; i++){
//answer 배열의 인덱스는 i - (n - 1)
answer[i - (n - 1)] = num_list[i];
}
return answer;
}
}