Pregunta de entrevista de Apple

two sum, linked list loop, readers-writers problem.