Arista Networks Interview Question

First question was manually implementing strcmp. Second one was linked lists. I couldn't complete third one.