Cognizant Interview Question

second largest element in array