Verkada Interview Question

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