Wrong Test-case


#1

The test case provided is wrong
for the input
16 rbbbggrbrbrggrgr bgbrbbrgggrgrrrr rgbrrrbbgbbbrrrb bbgbrgrbbrgrrgbb ggbrbrrbggggrrgb bgbrbrggbgrrgbrg grbbbgrbgbbgbbgr rbgbgbrrgrgbgbbr gbgrrgbbrrbbgbbg brgrbbrrbrgbgbrb rbbrrrbgrbgrbbrg rrggrrbbbrgbgggg rrrrgbbrgbbgbbrg rgbgrrrrggbbrrgr ggbrbbbbgrrrbrbb gggggrgbrbrbrrgr
expected value is 120, which is wrong(should be 128)

for simplicity, the input is
r b b b g g r b r b r g g r g r
b g b r b b r g g g r g r r r r
r g b r r r b b g b b b r r r b
b b g b r g r b b r g r r g b b
g g b r b r r b g g g g r r g b
b g b r b r g g b g r r g b r g
g r b b b g r b g b b g b b g r
r b g b g b r r g r g b g b b r
g b g r r g b b r r b b g b b g
b r g r b b r r b r g b g b r b
r b b r r r b g r b g r b b r g
r r g g r r b b b r g b g g g g
r r r r g b b r g b b g b b r g
r g b g r r r r g g b b r r g r
g g b r b b b b g r r r b r b b
g g g g g r g b r b r b r r g r