Apple Interview Question

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