On arranging the letters in order we get
G, H, I, N, T
T is 5th letter
then G, H, I, N
H is 2nd letter
then G, I, N
I is 2nd letter
then G, N
N is 2nd letter
then G
total no. of words = 5*4*3*2*1 = 120
so rank = (120/5)*4+(24/4)*1+(6/3)*1+(2/2)*1+1
= 96+6+2+1+1 = 106