Einfochips Interview Question

WAP for 2nd largest element in the given array