Forma.ai interview question

Flatten a Recursive Dictionary/Map DS