Aman interview question

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