Problem Statement
The infinite plane is divided into a grid of unit square cells.
Two cells are considered adjacent if they share a side.
There are some foxes on the plane.
Each fox is currently standing on a different cell.
This must also be preserved in the future - there cannot be two foxes in the same cell at the same time.
Whenever a fox takes a step, it moves to a cell that is adjacent to its current cell.
A set of cells is considered connected if a fox could walk from any cell in the set to any other cell in the set without leaving the set.
All foxes want to get together.
More precisely, they want to move in such a way that at the end the set of cells occupied by the foxes is connected.
Return the smallest total number of steps the foxes need to make in order to reach such a configuration.