Implement the function maxLoc(), which return an iterator pointing at the largest element in a list.
// return an iterator pointing to the largest element in the list.Write a program that tests maxLoc(). You can read a data file into a list and call the function maxLoc to find the largest element.template <class T>
list<T>::iterator maxLoc(list<T>& aList);