you give integer array nums integer indexdiff valuedifffind pair indice j thati jabsi j indexDiffabsnumsi numsj valueDiff andreturn true pair exist false Example 1input num 1231 indexdiff 3 valuediff 0output trueexplanation we choose j 0 3We satisfy conditionsi j 0 3absi j indexDiff abs0 3 3absnumsi numsj valueDiff abs1 1 0example 2input num 159159 indexdiff 2 valuediff 3output falseexplanation after try possible pair j satisfy condition return false constraints2 numslength 105109 numsi 1091 indexdiff numslength0 valueDiff 109