Domanda di colloquio di Meta

There were two coding questions, one easy and one medium from LeetCode.