Glovo interview question

Recruiter : What is the difference between an CTE statement and a subquery ?