BNY interview question

Arrays, Linked list