Java program finds the alphabetic rank of a word based on the combination of the word's letters