For string to be isomorphic the previous counts of appearances of current character in both string must be same if it is not same we return false .
if ( count [ str1 [ i ] - ' a ' ] != dcount [ str2 [ i ] - ' a ' ] ) return false ; } return true ; }