Salesforce Interview Question

Simple algorithm with LinkedLists