What is the time complexity of finding the minimum number of scalar multiplications needed for A1A2…AnA_1A_2\ldots A_nA1A2…An using dynamic programming?