SAP interview question

implement a stack