During technical and coding interviews, the interviewer might ask the candidate to solve a particular problem in order to get some insight into the skills related to problem solving. One such problem is the Cash Register Problem. In this blog post I’m gonna try to explain it and offer an approach for solving it using Java.