Luxoft interview question

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