Compute maximum path sum in a binary tree | ByteDance