Trade Republic Interview Question

How to deep clone an object