Apolis Interview Question

they asked me leetcode questions and there are 2 question about array and list.