Typescript Get Largest Number In Array Leetcode Problems