Javascript Get Maximum Value From Array To Hashmap In Python W3schools