Editorial request for **Watson and Intervals** problem from APAC test round B. I solved this problem using brute force technique with complexity O(n^{2}) but since input size is too large my solution is not working for large inputs.

Can anyone write editorial for this problem.