adsquare interview question

How did you optimize SQL and Python codes