Pergunta de entrevista da empresa Itlize Global

what would be the correct output for certain codes