Domanda di colloquio di PayPal

Easy leetcode question about array and list.