Pregunta de entrevista de CA Technologies

Algorithm question in linked list