This is very trivial stuff. So the problem is to swap values of two variables without using any temp variable.
Let two variables that needs to be swapped be ‘a’ and ‘b’.
1. a = a + b2. b = a — b