<prompt> Ha u fuoa likhoele tse peli, ngola lenaneo ho hlahloba hore na e ngoe ke tumello ea e ngoe.Khoele ea pele: abcd Khoele ea bobeli: cdab  <response>: Instruction in English: Given two strings, write a program to check if one is a permutation of the other. . Response in English: To check if one string is a permutation of the other, one approach is to sort both strings and compare them. If the sorted strings are equal, then one is a permutation of the other. Here is a sample Python code that implements this approach:pythondef check_permutationstr1, str2: If the strings have different lengths, they cannot be permutations if lenstr1 ! lenstr2: return False Sort both strings str1_sorted sortedstr1 str2_sorted sortedstr2 Compare the sorted strings return str1_sorted str2_sortedstring_one abcdstring_two cdabif check_permutationstring_one, string_two: printYes, the two strings are permutations of each otherelse: printNo, the two strings are not permutations of each otherOutput: Yes, the two strings are permutations of each other . Response in Sesotho: Ho hlahloba hore na khoele e le ngoe e lumellana le e ngoe, mokhoa o mong ke ho hlophisa likhoele ka bobeli le ho li bapisa. Haeba likhoele tse hlophisitsoeng li lekana, joale e ngoe ke permutation ea e ngoe. Mona ke mohlala oa khoutu ea Python e sebelisang mokhoa ona: python def check_permutationstr1, str2: Haeba likhoele li na le bolelele bo fapaneng, li ke ke tsa ba tumello haeba lenstr1 ! lenstr2: khutlisetsa Bohata Hlophisa likhoele ka bobeli str1_sorted hlophisoastr1 str2_sorted hlophiloestr2 Bapisa likhoele tse hlophiloeng li khutlisetsoa str1_sorted str2_sorted string_one abcd string_two cdab haeba check_permutationkhoele_one, khoele_tse peli: likhoele ke tumello ea tse ling tse ling: printChe, likhoele tse peli ha se tumello ea tse ling Sephetho: E, likhoele tse peli ke tumello ea tse ling 