Pregunta de entrevista de MathWorks

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