Semrush Interview Question

Review this python code and fix it.