Arista Networks interview question

An algorithmic problem with linked lists