PayJoy Interview Question

Find the 2nd max in an array.