Kalyan's submission of Is It a Snake | CodeChef