Amazon interview question

Move an array to a linked list