brword print using linked-list