Tredence interview question

Began with SQL and then python finally landed to DSA