After a week or so, I have started to master Java, as a part of the courses at the SoftUni. Today, I tried to resolve one of the problems, given about 3 weeks ago at the exam – CountBeers. The…