Ivan's submission of Intervals and Intersections | CodeChef