Appear interview question

An exercise about deep copy vs shallow copy