Dinesh Goyal's submission of Yet Another Flipping Problem | CodeChef