Paytm interview question

2nd largest element in the array