Suppose you have two variables a and b that store some numbers. Swap the values of these variables. For example, if a = 3 and b = 5, then after running the code, a will contain 5, and b will contain 3.
Try to do it with the help of a third variable c. You can imagine that variables are just boxes with values, and you need to swap their contents, like this: