Devesh Agarwal's submission of Snake Eating | CodeChef