Pergunta de entrevista da empresa Pearson

Java code for printing 2nd maximum in an array