State Farm Interview Question

Give you a code and ask what these code do, and some statistical related questions like p-value