Autodesk interview question

Segment tree and graph question