Two Sum, use LUT and max, min to get the result.