pancake flipping problem

In time for pancake day here's a problem about flipping pancakes. It turns out to be surprisingly hard.