Cognizant Interview Question

Swap variables, code for odd/even