Skillz Interview Question

Make an arrayList, make a linked list, how to properly read input.