In this challenge, we learn about Arrays. Check out the attached tutorial for more details.
Complete the getSecondLargest function in the editor below.
getSecondLargest has the following parameters:
The first line contains an integer, , the size of the array.
The second line contains space-separated numbers that describe the elements in .
Sample Input 0
2 3 6 6 5
Sample Output 0
Given the array , we see that the largest value in the array is and the second largest value is . Thus, we return as our answer.