Lyft Interview Question

check distance between values in linked list