Optum Interview Question

2nd largest element in the array