Fix the implementation in `/app/solution.mjs`. Flatten nested plain objects into dot-separated keys. Preserve the exported `solve` API and run the available tests.
