Turo interview question

Basic problems regarding linked lists and arrays