Pergunta de entrevista da empresa Wipro

Swap between two numbers without using third variable. Fetch 2 last record from database