Meta interview question

Range Sum BST, Shortest path of a binary matrix