An implementation of two reverse string functions.