Poynt Interview Question

implement a stack