Amazon interview question

Data orientated.