Amazon interview question

It wasn't particularly difficult.