Leetcode Array And Arraylist Example