VerifyMy Interview Question

How would you make this solution asynchronous and scalable?