Leetcode Easy Question Of Arraylist To Int