A man was able to steal $10 million from a bank because its employees kept an important bank code on a post-it on the wall.