Capitec Bank interview question

What is the difference between a temp table and a CTE?