As p and s should occupy the first and last position, the first and last position can be filled in only one way. The remaining 4 positions can be filled in 4! Ways by the remaining words (S,C,E,N,T). hence by rearranging the letters of the word ASCENT we can form 1x4!