結果 : optimal binary search tree python code