Meta Interview Question

Tree search question + max subsequence