Pregunta de entrevista de New Tech Solutions

One general algo/DS problem solving question.