Question d’entretien chez Adobe

Find the second smallest and second largest element of a given array