Face order

How many ways can these five faces be ordered?

Problem



How many ways can the five faces below be ordered if the smiling face cannot be on either end?

 

Image
face order

 

This problem is taken from the World Mathematics Championships