The man found the loophole in the bank