Pergunta de entrevista da empresa Lenze

They asked me to introduce myself and coding problem in the assessment was create subarray from main integer array such that sum of the numbers in array must be equal to target number given