18. Maximum path sum (triangle)