Snap Interview Question

max sum of TreeNodes in n-ary tree while nodes cannot be adjacent and node value are positive