give binary string s return minimum number character swap alternate 1 impossiblethe string call alternate adjacent character equal for example string 010 1010 alternate string 0100 notany character swap adjacent Example 1input s 111000output 1explanation Swap position 1 4 111000 101010the string alternatingexample 2input s 010output 0explanation the string alternate swap neededexample 3input s 1110output 1 constraints1 slength 1000si 0 1