Applied Intuition Interview Question

Related to overlapping intervals in a cartesian plane