K append linked list challenge

what have tried brute force and and linked list method but then also i got 2 as wrong answer and 1 as runtime error out of 4 test cases i want to ask what is meant by K>=N??
HELP

Hey Divyansh, It means that if there are total 5 (i.e. N) elements in a list, then you can be asked to append the last 8 (i.e K) elements of that list to the front.
For eg. :
Input ->
7
1 2 2 1 8 5 6
10
Output ->
8 5 6 1 2 2 1