Veeva Systems interview question

Write code to simulate a vending machine that needs to return change