Another sorting algorithm we never covered in-depth is called "selection sort". It's similar to bubble sort in that it works by repeatedly swapping items in a list. However, it's slightly more efficient than bubble sort because it only makes one swap per iteration.
Selection sort pseudocode:
Complete the selection_sort function.
It should sort the input list nums in ascending order using the selection sort algorithm. The function should then return the sorted list