Domanda di colloquio di Aman

First question was to sort an array Second was to swap two numbers without using third variable.