DevRev interview question

merge intervals and a rate limiter function