Dis_carea's submission of Turn It | CodeChef