Pregunta de entrevista de Accenture

given some code snippets and asked for outputs