Apple interview question

write a code for a linked list