Pergunta de entrevista da empresa Bharti Airtel

I was just asked one question to print the maximum path of a binary tree