Devesh Agarwal's submission of Encoding | CodeChef