Problem In Leetcode Related To Optimal Merge Pattern