Trade Republic interview question

How to deep clone an object