Nomura Interview Question

swap 2 variable without using third, find cude root of n in logn time.