Question d’entretien chez Neo Financial

Write a pseudo code for the following problem.