2692. Make Object Immutable
Hints
Hint 1
Javascript has the concept of Proxy. That concept is critical to this problem.
Hint 2
Recursively use proxy so that the user of the object is only able to access a proxy object.
Hint 3
Override how set works. It should throw the correct error instead of actually setting a value.
Preparing judge…