Cognizant interview question

Write a program to swap two numbers, with and without another variable.