Inkitt interview question

Manipulate a nested JSON tree.