Nexcal's submission of Turn It | CodeChef