Meta interview question

Tech screen: 1) array of integers problem, 2) tree problem