Didn't get the question

I didn’t get the question, what is it asking for?

Question is saying that you are given a number n and a permutation of number from (1 to n) . Permutation mean any random order of number from 1 to n. And you are also given a number k which is the like a restriction to swap any two numbers in permutation given.
For example as per in question given -:
n=5 and k=2
permutation is given as 3 4 1 2 5
So you have 2 chances since k is 2 , in which you can swap any two numbers in the given permutation in order to make the number larger.
So if we swap 3 & 5 , and again swap 1 & 3 , then we used all number of k chances and makes the larger permutation possible as 5 4 3 2 1.

What is permutations?

I got the question that we have to swap k times and sort it… I didn’t get the permutations part…

Ok I got it… thank you so much…