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.