FIS interview question

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