Ashwin Ramachandran's submission of Turn It | CodeChef