Return the largest number in the non-empty array nums, without using a built-in max function.
Function
function solve(nums)
Example 1
nums = [3,9,2] โ 9
Submit also runs 3 hidden tests, including edge cases.