Cognizant Interview Question

Swap strings using pointers