ARB Software interview question

Difference between CTE and temp table