Question:Input: [[1, 10], [2, 6], [9, 12], [14, 16], [16, 17]] Output union: [[1, 12], [14, 17]] Output intersection: [[2, 6], [9, 10]] Java Answer: Use Java PriorityQueue