Domanda di colloquio di Fast Enterprises

Easy–medium LeetCode style problem (optimized)