Hi guys
I have a program to write but no idea where to start from.

program:
write a program that tells how many ways exists in order to multiply n matrices. You know that in matrices a*b is not equal to b*a but in this program it doesn't matter.
Thanks for your help!