Poynt interview question

implement a stack