Sort the array in Ascending form and pick the second last element from the array.
Course: https://www.educative.io/courses/data-structures-interviews-cs
Lesson: Solution Review: Finding the Second Maximum Value in an Array - Data Structures for Coding Interviews in C#