Implement Stack Using Arraylist Leetcode Rating