Pergunta de entrevista da empresa Tech Mahindra

in the technical round i was asked to solve puzzles. the interviewer asked me to write a microprocessor program for swapping two numbers.