Given a rectangular grid of m by n spaces, signaled by 0s, and a number of points, signaled by 1, 2, 3..., return the number of moves for the shortest path that starts at 1 and goes over all the other points in ascending order.
shortestPath([
"001",
"002",
"003"
]) ➞ 2
shortestPath([
"00000",
"01006",
"02000",
"30050",
"00004"
]) ➞ 13
shortestPath([
"00020000",
"01000000"
]) ➞ 3