Atlassian interview question

Questions about finding subarrays