Société Générale interview question

Basic programming concepts