Chartmetric Interview Question

Recursively iterate a json tree structure.