DianApps interview question

2nd largest element of array