Question d’entretien chez Oracle

it was a coding question using javascript