Nunasiaat tamakkuersaasutik, tamakkuersaasia qanoq iliaqarfik. 
Iliaqarfik inunngornermiut tunngaviusumik qimmeqarfik nalunaaffiup kingorna, qimmeqarfik qanoq kingusinnerani kiffaq. 
Nary-Tree imerpasassat nutaaq ilinniartitsineq qalipagarneq kingusinnerani, kingup paasiaat null torneqartarneq (Naapertuullutik).
Ukiut qimanneq isumaginnissaannik ammaa pituttut n-ary tree-mi, tunngavilerneqarnerpa ruugu. Kalaallisuut qimaneq qanoq isumaqarpoq, qanoq ilinniartitsineq aningaasat. Nuummioqatigut, imaqarpoq, isumalunnga aningaasat qimassoqatigiiffiat. Tamakku imaqarpoq, isumaqatigiit pitsanngorsimasaat qimassorisat aningaasatigut, aningaasatigut qimassorisat pituttut, +1 (qimassorisat isumaqarnerpa aningaasat). Ukiut koodi python:

```
class Node:
    def __init__(self, val=None, children=None):
        self.val = val
        self.children = children

def max_depth(root):
    if not root:
        return 0
    children_depths = [max_depth(child) for child in root.children]
    return max(children_depths, default=0) + 1
```