Ranklist Problem

Please help me!! I am not able to understand the question statement …of lets play with the ranklist problem in long challenge

from what i made out i understood the question as
if u had a test case of
5 7
it would look like this
1 1 1 2 2
so the answer my code generates for this is 3
i took it as
as 1 is correct
and i also have 2 in the list…
i can change the rest of them in 3 4 and 5 in 3 operations

can someone explain the question to me pls !!

Yes, you have understood it correctly with the given test case of 5 7.