Amazon interview question

Leetcode 88 (merge sorted interval)