Deloitte interview question

Problem set based on Databases