In Doc2Doc, we might have documents nested inside other documents, forming a kind of tree. You know how crazy .docx files can get...
Anyways, we want to find out how deeply nested a given document is.
Complete the count_nested_levels function. It takes a dictionary of nested documents, the target document id and the current level of the document.
In this dictionary, the document with id 3 is nested 2 levels deep. Document 2 is nested 1 level deep.
{
1: {
3: {}
},
2: {}
}