Virtusa Interview Question

second largest element in aaray