Domanda di colloquio di Apple

medium leetcode question has been asked