Domanda di colloquio di Société Générale

some syntax questions and one algorithm question in c++