Compute maximum path sum in binary tree | ByteDance