Codeforces Round #579 (Div. 3) A. Circle of Students

can someone please explain this question

Basically you need to check if the given numbers are in order of 1…N or N…1.
Suppose, the array is 3,4,5,1,2;
this is correct because it’s in the order of 1…N.
Now, another array is 2,1,5,4,3;
this is also correct because it’s in the order of N…1.