Pregunta de entrevista de TCS

DSA question based on linked list