hemanth baliji's submission of Turn It | CodeChef