Cognizant Interview Question

Write a program for swapping two words