Hackerrank - Cavity map

{CM} I love mapping and topological problems. Visualization is a powerful thing.