Amazon Interview Question

Merge Intervals Problem from LeetCode