Amazon interview question

The question was on system design