Pregunta de entrevista de Capgemini Invent

simple programs and it's output