All Ancestors of a Node in a Directed Acyclic Graph - DSA Problem | Talentd