Capital One interview question

One question on a sql solution