Cognizant interview question

Swap strings using pointers