Question d’entretien chez Novalnet

write a programme in javascript to find out 2nd largest number