Devesh Agarwal's submission of Valid String | CodeChef