Intel Corporation interview question

Mostly Behavorial and some relevant code.