Amazon interview question

question on scalabilty