text: function Selection(arr) {
      let n = arr.length;
      for (let i = 0; i < n - 1; i++) {
          let minIndex = i;
          for (let j = i + 1; j < n; j++) {
              if (arr[j] < arr[minIndex]) {
                  minIndex = j;
              }           
          }
          let temp = arr[minIndex];
          arr[minIndex] = arr[i];
          arr[i] = temp;
      }    
      console.log(arr);
  }
  
  let arr = [64, 25, 12, 22, 11];
  Selection(arr);