give integer array num integer firstlen secondlen return maximum sum element nonoverlappe subarray length firstlen secondlenthe array length firstLen occur array length secondLen nonoverlappinga subarray contiguous array Example 1input num 065225194 firstLen 1 secondlen 2output 20explanation one choice subarray 9 length 1 65 length 2example 2input num 381321890 firstlen 3 secondlen 2output 29explanation one choice subarray 381 length 3 89 length 2example 3input num 2156095038 firstLen 4 secondlen 3output 31Explanation one choice subarray 5609 length 4 038 length 3 constraints1 firstlen secondLen 10002 firstLen secondlen 1000firstlen secondLen numslength 10000 numsi 1000