Failed to solve and seeking solution here!
Return the maximum number of columns in a tabular layout of the given `items`
where the length of each row is less than or equal to `maxWidth`.
Explanation:
When you run `ls` command on your Terminal it would layout the items in that directory in tabulor layout.
The number of columns in the layout will be adjusted based on Terminal width.
Here we are given the items in the directory and Terminal width, we should calculate how many columns would appear in the table layout.
Condition: Items should be listed in the same order
Input : [hello, world, onsite, developer, question] && 4
Output : 1
$ ls // Terminal width: 4
hello
world
onsite
developer
question
Input : [hello, world, onsite, developer, question] && 18
Output : 2
$ ls // Terminal width: 18
hello world
onsite developer
question

Input : [hello, world, onsite, developer, question] && 28
Output : 3
$ ls // Terminal width: 28
hello world onsite
developer question

Input : [hello, world, onsite, developer, question] && 60
Output : 5
$ ls // Terminal width: 60
hello world onsite developer question

PS: Images are real time examples from my mac hence the order of items were modified.
But for this problem we should not alter the items order.