Completed assignment to find max and min of a randomly created array