Intel Corporation interview question

Easy-level leetcode questions related to the array and linked lists.