2. Given an array, you can perform the following operation:
take two numbers from the array lets say x and y, replace every occurrence of y with x. Minimise the number of operations to convert the array to palindromic and return the least number of operations obtained.