Matrix Chain Multiplication | judge.