Rakuten interview question

SQL: Medium to advanced level Python:Medium