If N is first and L is last, then we just need to find all of the permutations for M, O, and P
with first letter M: MOP MPO
with first letter O: OPM OMP
with first letter P: PMO POM
Now, place the N in front and the L at the end of each permutation. There are 6 permutations in total:
NMOPL NMPOL
NOPML NOMPL
NPMOL NPOML