Constraint for two dimensional array

In reply to Shashank Gurijala:

Ex: increment happen from left upto reaches to 6 diagonal value position and value decrement happen after or from 6 position