Citi Interview Question

mainly asked about sql and querying