Non Overlapping Segments | CodeChef