Pergunta de entrevista da empresa Amazon

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