HCLTech interview question

Coding in SQL and Python