Amazon Interview Question

implement and test a stack in Python