GEICO interview question

Have to complete the scenario