add algorithm: reverse string