Harness interview question

I was asked to whiteboard a deep cloning algorithm