Ivan's submission of Nice SubSegments | CodeChef