Selection Sort
Selection sort is the simplest way to sort an array.
Pretend that index 0 is the smallest, and we look at each element. We select the smallest element from other index and swap the two elements.
array = [5, 7, 9, 0, 3, 1, 6, 2, 4, 8]
...