convert String to character array by using toCharArray
static String reverse ( String str ) { String ans = " " ; char [ ] try1 = str . ToCharArray ( ) ; for ( int i = try1 . Length - 1 ; i >= 0 ; i -- ) { ans += try1 [ i ] ; } return ans ; }