Declare and implement a function called arrayMax. It should accept a nullable DoubleArray as its single argument, and return the maximum value stored in the array. If the array is empty or null, you should return 0.0.
arrayMax
DoubleArray
null