I am stuck in a problem. I have user input of array which contains number
as well as strings
like:-
3
apple
Lemmon
sugar
2
Ginger
Ice
This is the data that I am receiving. Now I have to manipulate the data as such that. "Whenever it encounters a number it creates a new array with exactly the number values in array".
Desired Output
Array1 ["apple", "Lemmon", "sugar"]
Array2 ["Ginger", "ice"]
Any Idea will help. Thanks in advance