Amazon Interview Question

Maximum path tree sum