Pregunta de entrevista de Amazon

Programming Question on LinkedList and Arrays