Intel Corporation interview question

Some code questions