Algorithm To Implement Stack Using Array Leetcode