<prompt> Ngola algorithm ho hlophisa palo e fanoeng ea linomoro.3, 7, 1, 0, 4, 9, 8  <response>: Instruction in English: Write an algorithm to sort the given array of integers. . Response in English: Here is an example of an algorithm to sort the given array in ascending order using the Bubble Sort method:1. Take the input array and determine its length in this case, 7.2. Create a loop to iterate through the array from the first element to the second last element.3. For each iteration, create another loop to iterate from the first element to the last unsorted element in the array.4. Compare the current element with the next element, if the current element is greater than the next element, swap them.5. Repeat steps 3-4 until all elements have been sorted in ascending order.6. Return the sorted array. Here is the algorithm implemented in code:def bubbleSortarr: n lenarr for i in rangen: for j in range0, n-i-1: if arrj arrj1: arrj, arrj1 arrj1, arrj return arrarr 3, 7, 1, 0, 4, 9, 8sorted_array bubbleSortarrprintsorted_arrayThe output will be: 0, 1, 3, 4, 7, 8, 9 . Response in Sesotho: Mona ke mohlala oa algorithm ea ho hlophisa lethathamo le fanoeng ka tatellano e nyolohang ka mokhoa oa ho hlopha li-bubble: 1. Nka sehlopha sa ho kenya me u tsebe bolelele ba sona tabeng ena, 7. 2. Theha loop ho pheta-pheta ho tloha karolong ea pele ho ea ho ea bobeli ea ho qetela. 3. Poeletsong e nngwe le e nngwe, etsa loop e nngwe ho e pheta ho tloha nthong ya pele ho ya ho ntho ya ho qetela e sa hlophiswang lenaneng. 4. Bapisa elemente ea hajoale le elemente e latelang, haeba elemente ea hajoale e kholo ho feta element e latelang, li fetole. 5. Pheta mehato ea 3-4 ho fihlela likarolo tsohle li hlophisoa ka tatellano ea ho nyoloha. 6. Khutlisetsa sehlopha se hlophisitsoeng. Mona ke algorithm e kentsoeng tsebetsong ka khoutu: def bubbleSortarr: n lenarr bakeng sa i in rangen: bakeng sa j ho range0, ni-1: if arrj arr j1: arrj, arrj1 arrj1, arrj return arr arr 3, 7, 1, 0, 4, 9, 8 sorted_array bubbleSortarr printsorted_array Sephetho e tla ba: 0, 1, 3, 4, 7, 8, 9 