Source Defense interview question

Implement a mutation observer which notifies a server backend about the changed elements.