Amazon interview question

Explain an algorithm of your choice