Pergunta de entrevista da empresa JobRunr

Java Bowling Kata to realize (2 methods to complete and there is a test class to pass). lacking of explanations also.