Pergunta de entrevista da empresa Accenture

they asked about swaping two no. without using third variable then asked about a sql question