Genpact Interview Question

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