Himanshu Agrawal's submission of Bear and Segments | CodeChef