Question d’entretien chez Capgemini

give me compound interest code