Cognizant interview question

Swap variables, code for odd/even