MathWorks Interview Question

Find the maximum difference between the elements of an array, where only array is passed as an argument to the function.