Citi interview question

Domain knowledge and SQL language