Interview exercise about a rabbit game
The rabbit is going to be place at the center of the matrix, if the matrix has no definitive center then it will pick the place near the center that has the most carrots.
Each number in the array represent the carrots in the place, the rabbit can only move up, down, left, right. The rabbit will pick the place with the most amount of carrots once the rabbit hits a point where there is no carrot in its neighbor coordinates it will go to sleep and the game is over.