Lenovo interview question

Some basic C++ concepts