VerifyMy interview question

How would you make this solution asynchronous and scalable?