Pregunta de entrevista de Accenture

Basic programming questions.