solve 3SUM and 3SUM Closest