ZoomInfo interview question

How do you make this code production ready?