Total number of different letters = 5 ( H, O, T, S, P )
Number of Words having all the letters different = 5*4*3*2 = 120
Total number of repeated letters = 2 ( O, T )
If one letter is repeated then number of words = 2*(4*3/2)*(4*3*2*1/2) = 144
If two repeated letters are used then number of words = 6
Total number of words = 120 + 144 + 6 = 270