Google Interview Question

Question based on Maps Course Schedule II - Leetcode Segment Tree