Amazon interview question

How to solve a link list problem.