MathWorks interview question

swapping of two numbers using functions