Given a list of integers arr, you may repeatedly remove any contiguous subarray that forms a palindrome in one move. After removal, the remaining parts concatenate and may form new palindromes. Compute the minimum number of moves required to remove the entire array.
([1, 2, 3, 2, 1, 4],)2