5. Bob sends it back to the bank.
And your scenario doesn't match the original:
> There is a scam where people put money into your account.
And your scenario doesn't match the original:
> There is a scam where people put money into your account.
The constrained message length and lack of edit feature on Twitter means you have to forgive people if their wording isn't exactly as accurate as you might want it to be.
If the person does look up the details and just transfers the money back to the loaning bank, that doesn't cost the scammer anything.