Amazon phone screen

Aamzon- L5 - PhoneScreen

Description Template:
Level: L5
Education: Master
Years of Experience: 5
Questions Asked:

You are given a list of closed intervals on the number line, where each interval is represented as a pair [start, end] and includes both endpoints. Two intervals overlap at a point if that point lies in both intervals.

Determine the maximum number of intervals that overlap at any single point on the number line.