Unit09: FunWithStacks

Fix crash when arr is empty.