Ankur Kayal's submission of Yet Another Flipping Problem | CodeChef