Intel Corporation interview question

Python and C++ code.