Avinash Jha's submission of Minimize the string | CodeChef