3391: Design a 3D Binary Matrix with Efficient Layer Tracking

Problem Statement