Dinesh Goyal's submission of Encoding Message | CodeChef