HelloFresh interview question

Is CTE better or subqueries?