Quest Global interview question

Easy DSA question on linked list and array?