Toptal Interview Question

Manipulate a JSON with nested objects