Amazon interview question

Q: Amazon online code challenge