Pregunta de entrevista de Atlassian

Questions about finding subarrays