Wells Fargo interview question

How to protect against this attack?