Please solve the programming task below using a self-contained code snippet in a markdown code block.

You are given an integer array arr.
In one move, you can select a palindromic subarray arr[i], arr[i + 1], ..., arr[j] where i <= j, and remove that subarray from the given array. Note that after removing a subarray, the elements on the left and on the right of that subarray move to fill the gap left by the removal.
Return the minimum number of moves needed to remove all numbers from the array.
 
Please complete the following python code precisely:
```python
class Solution:
    def minimumMoves(self, arr: List[int]) -> int:
```