Zurich Insurance interview question

Explain an algorithm if your choice in simple terms