We have given two texts as text1 and text2 and we try to put it in 1 x 2 table, so we need to find the minium height
where we can put the divider.

where we should put this divider in table to get minimum height, we are given width of the table
Approach which I was able to get: good case is when the length of both text is equal so we start with putting the divider in middle and get height h, then we check if len of the text in 1st cell is less then I can move my divider in left else if my len of text in 2nd cell is less then I can move my divider to right side, this movement I can do with bineary search will get a value where my height started increasing again
though could not get time to code it up properly, took time to think through this approcah only