Pregunta de entrevista de athenahealth

Find max difference in an array