Using C++ (Java), write a function that takes a vector(ArrayList) of type T and returns true if the container is a palindrome and false otherwise. Assume that operator == (equals()) is defined for type T.
vector
ArrayList
T
true
false
operator ==
equals()