3
vector<vector<int>> intervalIntersection(vector<vector<int>> &firstList,4
vector<vector<int>> &secondList) {5
vector<vector<int>> result;8
while (i < firstList.size() && j < secondList.size()) {9
if ((firstList[i][0] >= secondList[j][0] && firstList[i][0] <= secondList[j][1]) ||10
(secondList[j][0] >= firstList[i][0] && secondList[j][0] <= firstList[i][1])) {11
// there is an overlap13
{max(firstList[i][0], secondList[j][0]), min(firstList[i][1], secondList[j][1])});15
if (firstList[i][1] < secondList[j][1]) {