Implementing Ordinary Queue Using Array Leetcode Question