SHIVRATRI => AHIIRRSTV
Arranging letters in alphabetical order: AHIIRRSTV => I and R are repeated (2 I’s& 2 R’s)
Words starting with Alphabet A = 8!/(2!*2!) = 10080
Words starting with Alphabet H = 8!/(2!*2!) = 10080
Words starting with Alphabet I = 8!/2! = 20160
Words starting with Alphabet R = 8!/2! = 20160
Words starting with Alphabet SA = 7!/(2!*2!) = 1260
Words starting with Alphabet SHA = 6!/(2!*2!) = 180
Words starting with Alphabet SHIA = 5!/2! = 60
Words starting with Alphabet SHII = 5!/2! = 60
Words starting with Alphabet SHIR = 5! = 120
Words starting with Alphabet SHIT = 5!/2! = 60
Words starting with Alphabet SHIVA = 4!/2! =12
Words starting with Alphabet SHIVI = 4!/2! = 12
Words starting with Alphabet SHIVRAI = 2! = 2
Words starting with Alphabet SHIVRAR = 2! = 2
Words starting with Alphabet SHIVRATI = 1 = 1
And next word is SHIVRATRI so +1 for final word
Sum of all words => 2*10080 + 2*20160 + 1260 + 180+ 3*60 + 120 + 2*12 + 2*2 + 1 + 1 =62250