Kth nearest hostel

i was not able to understand the problem constraints.

same with me.
The sample inputs are not clear and partially the statement.