EXL Service interview question

Sql joins and python loops