Fix the implementation in `/app/solution.mjs`. Return unique input values while preserving first-seen order. Preserve the exported `solve` API and run the available tests.
