Pergunta de entrevista da empresa Cognizant

They ask me to mathematical problem then swap two numbers using two variables they asked me about dynamic memory allocation.