Garmin interview question

Find the max difference in an array