Given an array of integers, set the reference parameters
min
and
max
to the smallest and largest values in the array. You may assume that the array contains at least one element.