<prompt> Theha algorithm ho khutlisa khoele e kentsoeng, tlhaku ka tlhaku.Input String: Hello World  <response>: Instruction in English: Construct an algorithm to reverse a given input string, character by character. . Response in English: 1. Define a function reverse_string, that takes a string as input.2. Initialize a variable reversed_string as an empty string.3. Use a loop to iterate through the characters from the end of the original string to the beginning.4. Append each character to the reversed_string.5. Return the reversed_string.pythondef reverse_stringinput_string: reversed_string for i in rangeleninput_string-1, -1, -1: reversed_string input_stringi return reversed_stringinput_string Hello Worldresult reverse_stringinput_stringprintresult Output:dlroW olleH . Response in Sesotho: 1. Hlalosa tšebetso reverse_string, e nkang khoele e le ho kenya. 2. Qala ho feto-fetoha reversed_string joalo ka khoele e se nang letho. 3. Sebelisa loop ho pheta-pheta litlhaku ho tloha qetellong ea khoele ea pele ho ea qalong. 4. Kenya tlhaku e ngoe le e ngoe ho reverse_string. 5. Khutlisetsa reverse_string. python def reverse_stringinput_string: reversed_string for i in rangeleninput_string-1, -1, -1: reversed_string input_stringi return reversed_string input_string Hello World result reverse_stringinput_string hatisasephetho Output: dlroW olleH 