Apple interview question

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