How this solution accepted for SHUFFLE?

https://www.codechef.com/viewsolution/32228822

Problem: SHUFFLE (CodeChef: Practical coding for everyone)

in April Lunchtime 2020
how this solution got FULL SCORE??

like, we can`t sort the array when; n=6 and k=2
1 2 3 4 6 5

but the solution output is “yes”

Because of weak TC

2 Likes