ObjectsCode (1/2)
Write a function flattenObject(obj) that flattens a deeply nested object into a single-level object, using dot notation for nested keys.
    Example:
    const obj = {
    a: 1,
    b: { c: 2, d: { e: 3, f: 4 } },
    g: { h: 5 }
    };
    console.log(flattenObject(obj));
    /*
    {
    "a": 1,
    "b.c": 2,
    "b.d.e": 3,
    "b.d.f": 4,
    "g.h": 5
    }
    */