Akamai interview question

Create an optimized non-destructive stack