Pregunta de entrevista de Kanzen

They asked a coding question in C++