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