Pregunta de entrevista de Continental

Logic questions and basic C++ problems