Frage im Vorstellungsgespräch bei Aman

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