Capital One interview question

Create a method that would be able to store bank transactions