public static void main(String args[]){
        MatrixMultiplicationCost mmc = new MatrixMultiplicationCost();
        int arr[] = {4,2,3,5,3};
        int cost = mmc.findCost(arr);
        System.out.print(cost);
    }
http://www.geeksforgeeks.org/dynamic-programming-set-8-matrix-chain-multiplication/
src/com/interview/dynamic/MatrixMultiplicationCost.java