Motorola Solutions interview question

implement a stack