Karthik's submission of Chef and Segment Game | CodeChef