Implemet the traverse of link list.