PayPal Interview Question

Easy leetcode question about array and list.