Problem: Write a function that takes an array of numbers as a parameter and
return the second largest number.
Note: You must not use any built-in functions (like max(), sort(), etc.). You have to solve it using a loop.
Example:
Input : [4, 2, 7, 1, 9]
Output:7