Merge Nested Dictionaries Iteratively | Chicago Interview Question