Sam's Pizza School
Sam, leveraging his experience as a national algorithm representative, has discovered an algorithm for making the perfect pizza dough. The initial pizza dough is not flat, and the amount of flour at each dough position is given as an array. The process of making perfect pizza dough is as follows: