Domanda di colloquio di IBM

Just standard leetcode problems, easy difficulty.