[arrays] Correct way to find max in an Array in Swift