Pearson interview question

Java code for printing 2nd maximum in an array