Niantic interview question

DP problem, binary tree problem