Cognizant interview question

second largest element in array