Compute minimum path sum in a triangle | TikTok Interview Question