GlobalLogic Interview Question

What is the diifernce between CTE and temp table