Genpact interview question

Java OOPs concepts, Find the 2nd largest element from array