DevRev Interview Question

merge intervals and a rate limiter function