Javascript Maximum Array Value Python Interview