The function below builds a SQL query by embedding user input directly into the string.
The bug: an attacker can pass "1' OR '1'='1" as user_id and dump the entire users table (or worse, DROP TABLE users).
Your task: fix solve(user_id) so it returns a parameterized query dict instead of a raw string:
# Expected return shape
{'sql': 'SELECT * FROM users WHERE id = %s', 'params': [user_id]}The sql string must use the %s placeholder (the standard Python DB-API convention). The user input must only ever appear in params — never embedded in the SQL string.
Sample tests