IBM interview question

Database