Pergunta de entrevista da empresa FIS

Question around references and pointer, difference between them, use of temp variable