Amazon Interview Question

Convert a number to a link list.