add exercise to find maximum and minimum in an array