Implement solve(value) that returns a fully independent deep clone of any
JSON-shaped value (primitives, arrays and plain objects, possibly nested).
Requirements
null) are returned as-is.must never affect the original input.
Out of scope
You don't need to handle Date, Map, Set, RegExp, circular
references or class instances. Focus on plain JSON shapes.
Forbidden shortcut
Don't use JSON.parse(JSON.stringify(x)). The point is to demonstrate the
recursion mechanics yourself.
Sample tests