Code Review

Compare your solutions

    a->b->c->a->b... infinite loop
last-pair will never finish work