Pergunta de entrevista da empresa Tata Consultancy Services

I was given to prove a theorem