Pergunta de entrevista da empresa SigTuple

basic problem solving, data structures