Motorola Solutions Interview Question

implement a stack