Amazon interview question

How well would your solution scale?