Question d’entretien chez Prudential

Explain your methodology for solving the programming problem.