Ad
  • Default User Avatar

    Thank you, this function really doesn't work in this case. However, there is the following statement
    in the task: "reverse function should be executed only N times", so this case is impossibe, but thank you again, I changed my solution.