TATA ELXSI Interview Question

Some basic tricky code snippets in an efficient way like swapping etc