def findBestShift(wordList, text):

returns bestshift