You'll be given some texts and width of an editor page (e.g. MS word), W = 10 for example. Now, you have to find how many lines you can fit in a single page.
Example :
Hello how are you [ total character length = 17, Page width = 10]
So, in line 1 = Hello how
in line 2 = are you
In this example, there could be total 2 lines that we can fit in a page with the given texts. Now also consider, if there is longer texts.
What could be your solution for this problem?