How would you implement a function that removes specified keys and their corresponding values from an object, including nested objects or arrays?

Technical