<prompt> Theha algorithm e ncha ho hlophisa lethathamo la linomoro.nan  <response>: Instruction in English: Create a new algorithm to sort a list of numbers. . Response in English: One possible algorithm for sorting a list of numbers is the MinMax Sort algorithm:1. Find the minimum and maximum values in the list and swap them with the first and last elements of the list, respectively.2. Repeat step 1 with the sublist that excludes the first and last elements until the entire list is sorted.Here is an example implementation of MinMax Sort in Python:pythondef minmax_sortnumbers_list: n lennumbers_list for i in rangen2: min_index i max_index i for j in rangei1, n-i: if numbers_listj numbers_listmin_index: min_index j if numbers_listj numbers_listmax_index: max_index j if max_index i: max_index min_index numbers_listi, numbers_listmin_index numbers_listmin_index, numbers_listi numbers_listn-i-1, numbers_listmax_index numbers_listmax_index, numbers_listn-i-1 return numbers_listExample usage:pythonnumbers_list 5, 2, 8, 6, 1, 3, 4, 7sorted_list minmax_sortnumbers_listprintsorted_listOutput:python1, 2, 3, 4, 5, 6, 7, 8 . Response in Sesotho: ngoe ea algorithm e ka khonehang bakeng sa ho hlophisa lethathamo la linomoro ke algorithm ea MinMax Sort: 1. Fumana litekanyetso tse fokolang le tse phahameng ka ho fetisisa lethathamong ebe u li fetola ka likarolo tsa pele le tsa ho qetela tsa lenane, ka ho latellana. 2. Pheta mohato oa 1 ka lethathamo le sa kenyelletseng likarolo tsa pele le tsa ho qetela ho fihlela lenane lohle le hlophisoa. Mona ke mohlala oa tsebetsong oa MinMax Sort ho Python: python def minmax_sortnumber_list: n lennumbers_list bakeng sa i in rangen2: min_index i max_index i bakeng sa j in rangei 1, ni: haeba numbers_listj numbers_listmin_index: min_index j if numbers_listj numbers_listmax_index: max_index j if max_index i: max_index min_index numbers_listi, numbers_list min_index number_listmin_index, numbers_listi number_listni-1, numbers_listmax_index numbers_listmax_index, numbers_listni-1 kgutlisa dinomoro_lenane Tshebediso ya mohlala: python dinomoro_lenane 5, 2, 8, 6, 1, 3, 4, 7 sorted_list minmax_sortlenane_la_linomoro hatisalethathamo_le hlophiloeng Sephetho: python 1, 2, 3, 4, 5, 6, 7, 8 