Exchange two numbers.

function to exchange two numbers using pointers.