Didnt understand the logic of this question

I didn’t understand the implementation of this problem.

in this you should take the input in the pair format and then sort the pairs according to their ending time and then you can check if the ending time of the current meeting is greater then the starting time of the next meeting then you need to increment the counter.