Intel Corporation Interview Question

removing elements from custom C++ list