Shivam Mittal's submission of Extreme Encoding | CodeChef