Cognizant Interview Question

Write the programs for swapping of two variables with and without third variable.