Domanda di colloquio di Fluential

Coding questions, you can solve it by python and C++. I did not get the code problem.