frequent words mismatch and reverse compliment problem