Citi interview question

mainly asked about sql and querying