Python || Easy solution
```\nind = -1\ndist = float(\'inf\')\n       \nfor i, point in enumerate(points):\n\tif (x == point[0] or y == point[1]):\n\t\td = abs(x-point[0]) + abs(y-point
```\nind = -1\ndist = float(\'inf\')\n       \nfor i, point in enumerate(points):\n\tif (x == point[0] or y == point[1]):\n\t\td = abs(x-point[0]) + abs(y-point[1])\n        if d < dist:\n\t\t\tdist = d\n            ind = i\n                \n\t\tif dist == 0:\n\t\t\tbreak\n        \nreturn ind\n
['Python']