Amazon Interview Question

implement push, pop and peek without using built in function on a stack