XPO interview question

Write a Stack without using the build-in functions