Amazon Interview Question

Experience with Python and some example