Compute maximum path sum in a binary tree | TikTok Interview Question