Domanda di colloquio di Google

Recursive Matrix question and a two pointer question