Exercise with minmax_element and remove_if erase functions