Solving cavity map problem.
Traversing the matrix and checking if a given cell is a cavity by checking
its neighbors.
Solution for Sherlock and Array.
moving solution for sherlock and array to sorting category.