Adobe interview question

1. Dyanamic Array related 2. Stack Question