Progressive Insurance Interview Question

Code explaination and system design