Merging 2 nested maps

You need to use Map.merge/3 and provide a conflict handler that handles the conflicts recursively.