user
Task: Write an algorithm that accomplishes the given task.
Input: Task: Reverse a given string
Output:
assistant
Algorithm:
1. Create an empty string called 'reversedString'.
2. Iterate through the given string and add each character to the beginning of reversedString.
3. Return reversedString.