Function calling
int ans1 = countSwap ( s ) ; char [ ] charArray = s . ToCharArray ( ) ; Array . Reverse ( charArray ) ; s = new string ( charArray ) ; int ans2 = countSwap ( s ) ; if ( ans1 > ans2 ) Console . WriteLine ( ans1 ) ; else Console . WriteLine ( ans2 ) ; } }