input: Write a python function to implement selection sort.
  assert selectionSort([4, 2, 3, 5, 1]) == [1, 2, 3, 4, 5]
  assert selectionSort([10, 7, 8, 9, 1, 5]) == [1, 5, 7, 8, 9, 10]
  assert selectionSort([64, 25, 12, 22, 11]) == [11, 12, 22, 25, 64]
output: def selectionSort(arr):
      for i in range(len(arr)):
          min_idx = i
          for j in range(i+1, len(arr)):
              if arr[min_idx] > arr[j]:
                  min_idx = j
          arr[i], arr[min_idx] = arr[min_idx], arr[i]
      return arr