LinkedIn Interview Question

Lots of algorithm and a couple design questions.