Write a function that returns the peak-to-peak amplitude of a signal stored in an array of 32-bit signed words. This is the difference between the maximum and minimum samples.
The function has two parameters. The first parameter is the length of the array (at least 1). The second parameter is a pointer to the beginning of the array.
unsigned int peak(unsigned int length, int *array);
[1, 2, 3]
Write your solution here