ShawHankins interview question

About linked lists and tree