FanDuel Interview Question

Merge overlapping array of intervals