an integer array call arithmetic consist element difference consecutive element samefor example 13579 7777 3159 arithmetic sequencesGiven integer array num return number arithmetic subarray numsA subarray contiguous subsequence array Example 1input num 1234output 3explanation we 3 arithmetic slice num 1 2 3 2 3 4 1234 itselfexample 2input num 1output 0 Constraints1 numslength 50001000 numsi 1000