Pergunta de entrevista da empresa Uber

Asked a 2D array question where I had to find the first element that was a 1