I am working in referral system. let's say user A invites user B and user C. And then User B invites user D and user C invites user E and so on. How can i iterate through all the child and grandchild node?I am working in referral system. let's say user