Betsol interview question

1. Find second largest element using a single loop