Capital One interview question

Implement a bank account class