Array Game

This game represents an array data structure visually. It has an array area and control buttons. The array area displays the array elements, which are represented by colored rectangles. The “Add” button allows the user to add a new element to the array, and the “Remove” button removes the last element from the array.
When the user clicks the “Add” button, the value from the text input is added to the array, and the array is updated visually. The text input is cleared after adding the value. When the user clicks the “Remove” button, the last element is removed from the array, and the array is updated accordingly.