return minimum of following two 1 ) flips when alternate string starts with 0 2 ) flips when alternate string starts with 1
return min ( getFlipWithStartingCharcter ( str , '0' ) , getFlipWithStartingCharcter ( str , '1' ) ) ; }