Amazon interview question

It was a programming question