Ivan Mistreanu's submission of Stacking Pancakes | CodeChef