Pregunta de entrevista de Google

Recursive Matrix question and a two pointer question