added solution without sorting an array

- iterated through the array to find the min, max, and average
- if the current number is bigger/smaller than the currently saved
  min/max, then update the variable to the new variable