Question d’entretien chez Raja Software Labs

How to get the second smallest number in array in one for loop