IBM interview question

An SQL and Coding question