Forma.ai interview question

How to flatten a python dictionary