Domanda di colloquio di Intel Corporation

Leetcode easy question, and some behaviour questions