Domanda di colloquio di Jabit Soft

Given a nested object, flatten it into a single-level object.