Meta Interview Question

1 difficult question of arraylist.