Write a function flattenObject(obj) that flattens a deeply nested object into a single-level object, using dot notation for nested keys. | Objects | javascript Interview Questions | NextRound.in