Write a Kotlin program to find the second largest element in an array.
MediumProblem Statement
Write a Kotlin program to find the second largest element in an array.
Sample Input
A hardcoded array: [10, 20, 30, 40, 50]
Sample Output
The second largest element is: 40
Limits
Time: 2s · Memory: 256 MB