<prompt> Theha algorithm e ka hlophisang palo ea lipalo ka tatellano e nyolohang.5, 2, 8, 1, 4  <response>: Instruction in English: Create an algorithm that can sort an array of numbers into ascending order. . Response in English: Here is an example of an algorithm that can sort an array of numbers into ascending order using the bubble sort method:1. Take the input array of numbers: 5, 2, 8, 1, 42. Begin iteration through the elements in the array starting with the first element.3. Compare each element with the next element in the array.4. If the current element is greater than the next element, then swap the two elements.5. Continue iteration through the array until no more swaps are needed.6. The array is now sorted in ascending order: 1, 2, 4, 5, 8Heres the implementation of the bubble sort algorithm in python code:pythondef bubblesortarr: Set the original array length n lenarr Iterate over all elements in the array for i in rangen: Last elements are already sorted for j in range0, n-i-1: Swap if the element found is greater than the next element if arrj arrj1 : arrj, arrj1 arrj1, arrj return arrnumbers 5, 2, 8, 1, 4sorted_numbers bubblesortnumbersprintsorted_numbers 1, 2, 4, 5, 8 . Response in Sesotho: Mohlala ke ona oa algorithm e ka hlophisang palo ea lipalo ho ea ho tatellano e nyolohang ka mokhoa oa ho hlopha bubble: 1. Nka palo e kenang ea linomoro: 5, 2, 8, 1, 4 2. Qala ho pheta-pheta ka likarolo. ka tatellano ho qala ka elemente ea pele. 3. Bapisa karolo ka ngoe le karolo e latelang lethathamong. 4. Haeba elemente ea hajoale e le kholo ho feta elemente e latelang, joale fetola lintlha tse peli. 5. Tsoela pele ho pheta-pheta ka hara sehlopha ho fihlela ho se ho sa hlokahale li-swaps. 6. Sehlopha se se se hlophisoa ka tatellano e nyolohang: 1, 2, 4, 5, 8 Mona ke tsebetsong ea algorithm ea mofuta oa bubble ka khoutu ea python: python def bubblesortarr: Seta bolelele ba lethathamo la mantlha. n lenarr Iterate over all elements in the arrata for i in rangen: Lielemente tsa ho qetela li se li hlophiloe bakeng sa j ho mefuta0, ni-1: Fapanya haeba element e fumanoeng e le kholo ho feta ntho e latelang if arrj arrj1 : arrj, arrj1 arrj1, arrj return arr numbers 5, 2, 8, 1 , 4 hlophisoa_linomoro bubblesortlinomoro khatisolinomoro_tse hlophiloeng 1, 2, 4, 5, 8 