resolve stack of flap jacks

resolve stack of flap jacks
PC ID: 110402
UVA ID:120