Typescript Get Max Value From Hashmap In C