Domanda di colloquio di Oracle

it was a coding question using javascript