a sequence number call arithmetic consist element difference consecutive element more formally sequence s arithmetic si1 si s1 s0 valid iFor example arithmetic sequences1 3 5 7 97 7 7 73 1 5 9the follow sequence arithmetic1 1 2 5 7you give array n integer num array m integer l r represent m range query ith query range li ri all arrays 0indexedreturn list boolean element answer answeri true subarray numsli numsli1 numsri rearrange form arithmetic sequence false Example 1input num 465937 l 002 r 235output truefalsetrueexplanationin 0th query subarray 465 this rearrange 654 arithmetic sequenceIn 1st query subarray 4659 this rearrange arithmetic sequenceIn 2nd query subarray 5937 this rearrange 3579 arithmetic sequenceexample 2input num 1293126152025201510 l 016487 r 4497910output falsetruefalsefalsetruetrue Constraintsn numslengthm llengthm rlength2 n 5001 m 5000 li ri n105 numsi 105