Ravi Kiran Selvam's submission of Bear and Segments | CodeChef