Checking for Vertical Symmetry . We compare first column with last column , second xolumn with second last column and so on .
for ( let i = 0 , k = M - 1 ; i < parseInt ( M / 2 , 10 ) ; i ++ , k -- ) {