This question appeared in one of the Hacker Rank Test's which I gave last week but couldn't solve it. So thought of taking the community help to understand the approch for this problem.
Here is the question.


The question looks similar to Meeting Rooms problem where you are given N meeting's along with start and end timings and M meeting rooms which are only available at a particular time. Return the maximum number of meetings that can take place.