NEC Corporation Interview Question

C++ polymorphism, Basic STL, Factory pattern