CodeSignal interview question

they ask subarray classic leedcde question.