Maximum difference in an array hackerrank github. * The function accepts INTEGER_ARRAY arr as parameter.