Garmin interview question

Write a function in C to find the difference between the maximum and minimum values in an array