input: Write a function to sort an array in ascending order without using the built-in sort function.
  assert sortArray([9, 3, 5, 1, 6]) == [1, 3, 5, 6, 9]
  assert sortArray([10, 2, 34, 5, 22]) == [2, 5, 10, 22, 34]
  assert sortArray([3, 1, 2]) == [1, 2, 3]
output: def sortArray(arr):
      for i in range(len(arr)):
          for j in range(0, len(arr)-i-1):
              if arr[j] > arr[j+1]:
                  arr[j], arr[j+1] = arr[j+1], arr[j]
      return arr