<prompt> Create a function that takes a string and a number, and reverses the given string the number of times specified.  <response>: Here is a function in Python that takes a string and a number, and reverses the given string the number of times specified:pythondef reverse_string_timesstring, number: for i in rangenumber: string string::-1 return stringTo use this function, you can call it with the desired string and the number of times you want it to be reversed, for example:pythonresult reverse_string_timeshello, 2printresultThis will reverse the string hello two times, resulting in the original string hello. 