The actual bank program is in the video below;
While the public or run method for this is below;
Although the problem with this program is that it may not work very well with large numbers depending on what you are running it on so be careful about that.
Keep in mind there are always several of ways to do a program, the way I did it may not be the way you would’ve done it.