Virtusa Interview Question

Psuedocode for N-ary trees