Pregunta de entrevista de Google

They asked Two sub array problem