Google interview question

They asked Two sub array problem