Apple interview question

Second Maximum of an array