Check out example codes for "reverse a string in c#". It will help you in understanding the concepts better.

Code Example 1

public void ReverseString(char[] s) {
        
        for(int i = 0; i < s.Length / 2; i++) {
    	    
            char temp = s[i];
    	    s[i] = s[s.Length - 1 - i];
    	    s[s.Length - 1 - i] = temp;
     
     }
}

Code Example 2

public static string ReverseString(string s)
    {
        char[] arr = s.ToCharArray();
        Array.Reverse(arr);
        return new string(arr);
    }

Learn ReactJs, React Native from akashmittal.com