Difference Between Queue And Dynamic Array Leetcode