$ g++ OptimalParanthesizationDP.cpp $ a.out Enter the array p[], which represents the chain of matrices such that the ith matrix Ai is of dimension p[i-1] x p[i]Enter the total length:4 Enter the dimensions: 2 4 3 5 Minimum number of multiplications is: 54