Accenture interview question

An algorithm based on the concept of link nodes