Utility method to get minimum flips when alternate string starts with expected char
function getFlipWithStartingCharcter ( str , expected ) { let flipCount = 0 ; for ( let i = 0 ; i < str . length ; i ++ ) {