Typescript Max Number In Array C