Karthik's submission of Stacking Pancakes | CodeChef