Darwinbox interview question

2) Program to find second largest element in an integer array.