Fix the implementation in `/app/solution.mjs`. Recursively freeze objects and arrays and return the original value. Preserve the exported `solve` API and run the available tests.
