input: Write a python function to sort an array using the Bubble Sort algorithm.
  assert sort_array([5, 3, 8, 6, 2, 7]) == [2, 3, 5, 6, 7, 8]
  assert sort_array([1, 4, 3, 2, 5]) == [1, 2, 3, 4, 5]
  assert sort_array([10, 9, 8, 7, 6, 5]) == [5, 6, 7, 8, 9, 10]
output: def sort_array(arr):
      n = len(arr)
      for i in range(n):
          for j in range(0, n-i-1):
              if arr[j] > arr[j+1]:
                  arr[j], arr[j+1] = arr[j+1], arr[j]
      return arr