PayJoy interview question

Find the 2nd max in an array.