Pergunta de entrevista da empresa Johnson & Johnson

Three Sum and problems with C++ code