JCPenney interview question

LinkedList and Arrays