Globant Interview Question

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