Question d’entretien chez J.P. Morgan

To write a short program