Create a program to find the second largest number in an array.
HardProblem Statement
Create a program to find the second largest number in an array.
Sample Input
arr = {5, 3, 8, 1, 4}Sample Output
Second Largest Element = 5
Limits
Time: 2s · Memory: 256 MB