Aspire Systems Interview Question

Swap the no without 3rd variable GCD of a number