Your question is Static vs Dynamic Typing. Take a moment with it on the right.
Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).
Difference between statically and dynamically typed languages
Explain the difference between static and dynamic typing, using a security-sensitive application as context only where it clarifies the comparison. Cover when type errors are detected, how each approach affects refactoring and testing, and whether either model provides security by itself. Include a brief example and discuss how you would reduce type-related security defects in production code.