SAP Interview Question

Insert an element into a stack Python code