Pergunta de entrevista da empresa SoftServe

Data structures and algorithms. Engineering related question.