Spring Global interview question

How would you implement a code that replace the value of variable A by B without using a new variable?