Question d’entretien chez Meta

First problem was a string problem and second involved using segtree to calculate points in a matrix.