you give integer x y represent current location Cartesian grid x y you give array point pointsi ai bi represent point exist ai bi a point valid share xcoordinate ycoordinate locationReturn index 0indexed valid point small Manhattan distance current location if multiple return valid point small index if valid point return 1the Manhattan distance point x1 y1 x2 y2 absx1 x2 absy1 y2 Example 1input x 3 y 4 point 1231242344output 2explanation of point 31 24 44 valid of valid point 24 44 small Manhattan distance current location distance 1 24 small index return 2example 2Input x 3 y 4 point 34output 0explanation the answer allow location current locationExample 3input x 3 y 4 point 23output 1explanation there valid point Constraints1 pointslength 104pointsilength 21 x y ai bi 104