Q8. Without using string function reverse a string.