Atos interview question

Some database question