Amazon Interview Question

How to solve a link list problem.