Infosys interview question

Acyclic Graph, Binary Tree, Lucky Path Sum