Pregunta de entrevista de Quest Global

Easy DSA question on linked list and array?