Amazon interview question

Experience with Python and some example