If the problem is to be solved inplace, we will get to the solution either by 1. swapping the corressponding values. 2. Storing one or more different values in the same pointer