update 3 sum, solve container with most water and longest common prefix