PwC interview question

About Arrays and Linked List