an intermediate solution for word ladder

Not accepted - too slow