Stack Using Arraylist Leetcode Solutions With Explanation