Leetcode Easy Question Of Arraylist To List