Stemmons interview question

SQL basics