IDEMIA interview question

Related to C/C++ basic