Intel Corporation Interview Question

Coding some puzzles and behavioral round was unexpected