Wells Fargo Interview Question

How to protect against this attack?