Capital One interview question

Code out a simple banking system.