Domanda di colloquio di Adobe

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