Cognizant Interview Question

table variable vs CTE