0286: Walls and Gates

Problem Statement