Solve the container with most water problem with an O(nlgn) approach.