Pregunta de entrevista de Walmart Global Tech

Medium LC binary search problem and matrix