Fix the implementation in `/app/solution.mjs`. Merge overlapping numeric intervals sorted by start. Preserve the exported `solve` API and run the available tests.
