Swap Robotics interview question

shallow copy vs. deep copy in c++