SWAP interview question

Subquery