Pregunta de entrevista de Infosys

some technical question on c++