Solution (source code)

= Solution

Fixing the last letter leaves five distinct letters to permute freely. Therefore the number is
$$
\boxed{5!=120}.
$$