Question d’entretien chez Cognizant

One simple question based on array and another one was swap two numbers without using third variable.