Verkada interview question

Design a way to select a rectangular area in a grid layout