Pergunta de entrevista da empresa Nagarro

Find if Tree contains a path from root to leaf. That has a specific sum