Citi interview question

SQL query Optimization Python linux