Arista Networks Interview Question

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