State Farm Interview Question

Explain your approach to the previous question