get number shift require to make string anagram