Capgemini interview question

differednc btwn temp table,derived table