you give string s consist character 0 1 in operation change 0 1 vice versathe string call alternate adjacent character equal for example stre 010 alternate string 0100 notReturn minimum number operation need s alternate Example 1input s 0100output 1explanation if change character 1 s 0101 alternatingexample 2input s 10output 0explanation s alternatingexample 3input s 1111output 2explanation you need operation reach 0101 1010 Constraints1 slength 104si 0 1