Pergunta de entrevista da empresa Harness

I was asked to whiteboard a deep cloning algorithm