Accenture Interview Question

An algorithm based on the concept of link nodes