Arista Networks interview question

A trees problem - path sum and path sum 2 on leetcode