Asif Jawad's submission of Bear and Segments | CodeChef