Globant interview question

How can we do the Deep copy of an object which having nested objects in an Object?