Bowling problem with 6 test cases