A Thinking Ape interview question

Design a cash register