ZS Associates interview question

How would I scale the solution which I am presenting