I couldn\'t solve this. Please do tell me any simple approach which can pass the time constraint.
Problem:
You are given n intervals which are termed