Gird Technologies interview question

Find the factorial? Swapping of numbers without using third variable?