Pregunta de entrevista de Johnson & Johnson

Three Sum and problems with C++ code