Domanda di colloquio di Arista Networks

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