Luxoft Interview Question

find a bugs in the provided code (shallow copy instead deep, memleaks)