Create an algorithm for converting an integer to a string.
An algorithm for converting an integer to a string can be written like the following:

Function integerToString(integer: int) -> str:
1. Create an empty string called result
2. If the integer is 0, add "0" to the result string and return the result string
3. While the integer is not 0
    1. Take the last digit from the integer by taking the remainder of the integer when divided by 10 (integer % 10)
    2. Convert the last digit to a string and add it to the front of the result string
    3. Remove the last digit from the integer by dividing the integer by 10 and taking the floor (integer // 10)
4. Return the result string

This algorithm first checks if the integer is 0, if it is, it just returns the string "0". If it is not, it uses a while loop to take the last digit off the integer, convert it to a string, add it to the front of the result string, and then remove the last digit from the integer. This process continues until the integer is 0. Finally, the result string is returned.
Below is an instruction that describes a task, write a response that appropriately completes the request.

### Instruction:
Create an algorithm for converting an integer to a string.

### Response:
An algorithm for converting an integer to a string can be written like the following:

Function integerToString(integer: int) -> str:
1. Create an empty string called result
2. If the integer is 0, add "0" to the result string and return the result string
3. While the integer is not 0
    1. Take the last digit from the integer by taking the remainder of the integer when divided by 10 (integer % 10)
    2. Convert the last digit to a string and add it to the front of the result string
    3. Remove the last digit from the integer by dividing the integer by 10 and taking the floor (integer // 10)
4. Return the result string

This algorithm first checks if the integer is 0, if it is, it just returns the string "0". If it is not, it uses a while loop to take the last digit off the integer, convert it to a string, add it to the front of the result string, and then remove the last digit from the integer. This process continues until the integer is 0. Finally, the result string is returned.