Design DP for optimal BST given key probabilities

Analyze the design dp for optimal bst given key probabilities.

Examples
Input: "test_input_1"
Output: "output_1"
Hints

Design DP for optimal BST given key probabilities

Analyze the design dp for optimal bst given key probabilities.