<prompt> Theha algorithm e tlosang likopi ho tsoa lethathamong le fanoeng.arr 1, 2, 2, 3, 4, 4, 5  <response>: Instruction in English: Create an algorithm that removes duplicates from a given array. . Response in English: 1. initialize a new empty array called result2. loop through each element in the input array arr3. check if the current element is already in the result array4. if it is not, append it to the result array5. if it is, move to the next element6. after the loop, return the result arraypythondef remove_duplicatesarr: result Step 1 for element in arr: Step 2 if element not in result: Step 3 and 4 result.appendelement Step 5 return result Step 6Testing with the input:pythonarr 1, 2, 2, 3, 4, 4, 5printremove_duplicatesarr 1, 2, 3, 4, 5 . Response in Sesotho: 1. qala lenane le lecha le se nang letho le bitsoang sephetho 2. loop ka ntlha e ngoe le e ngoe ka hara arr 3. hlahloba hore na ntho ea hona joale e se e le sephetho sehlopha sa 4. haeba se se, se kenyelletse ho sehlopha sa sephetho 5. haeba ho joalo, fetela karolong e latelang ea 6. ka mora loop, khutlisetsa sephetho sehlopha python def remove_duplicatesarr: result Mohato oa 1 bakeng sa element in arr: Mohato oa 2 haeba element e se sephetho: Mohato 3 le 4 sephetho.tlaleletsaelemente Sephetho sa 5 sa kgutliso Mohato 6 Ho etsa teko ka kenyeletso: python arr 1, 2, 2, 3, 4, 4, 5 hatisaremove_duplicatesarr 1, 2, 3, 4, 5 