Implement solve(obj, separator) that flattens a deeply nested plain object
into a single-level object using separator to join keys.
Example
solve({ a: { b: { c: 1 }, d: 2 }, e: 3 }, '.')
// → { 'a.b.c': 1, 'a.d': 2, 'e': 3 }Constraints
{}.Sample tests