Add the container with most water and remove Nth node from end of list