HCLTech interview question

basic sql and some coding in python