Pergunta de entrevista da empresa BigRoad

Basic leet code search question - easy level