Report of the problem

USACO 2022 US Open Contest, Bronze

Problem 1. Photoshoot

test case: HGGHGHHGHHHGHG
here the editorials code gives 2 but the answer is 1 where we will flip at position 5
so the answer will be HGHGGHHGHHHGHG
Correct me if i am wrong
Thank you