Driver code
int main ( ) { string S = " permanent " ; string T = " pergament " ; int n = S . length ( ) ; if ( S == " " T == " " ) cout << " Required ▁ string ▁ is ▁ empty . " ; else Swap ( S , T , n ) ; return 0 ; }