Amazon Interview Question

Solve an algorithmic problem involving merge intervals. Explain the time complexity of the solution.