Pergunta de entrevista da empresa Accenture

given some code snippets and asked for outputs