Zach Polansky's submission of Yet Another Flipping Problem | CodeChef