a function to reverse string using recursive