LinkedIn Interview Question

Recursively mutate a data structure