Pergunta de entrevista da empresa Fletchers Solicitors

Write a function that calculates the sum of squared numbers in Python. Then the interviewer asked if I could write it more efficiently.