Pergunta de entrevista da empresa Tech Mahindra

Some brain teasers were tricky.