Amazon interview question

How did you deal with the problem?