Pergunta de entrevista da empresa Riverbed Technology

write code to merge overlapping intervals.