Cognizant Interview Question

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