Frage im Vorstellungsgespräch bei Prudential

Explain your methodology for solving the programming problem.