ans will be , 1 + minimum of steps required from ( x1 , y1 ) and ( x2 , y2 ) .
dp [ abs ( x - tx ) ] [ abs ( y - ty ) ] = min ( getsteps ( x1 , y1 , tx , ty ) , getsteps ( x2 , y2 , tx , ty ) ) + 1 ; NEW_LINE