Take the first parameter or tuple and store it in the new property (declare it somewhere above in the class)
Then
Take every second parameter of a tuple and place it in a new Integer array
After all of that your goal is to separate the letters “a”, “b”, “c” - to a one array
And the numbers 1,2,3 - to another
Also, you have to specify the number array algorithm - how it should add the numbers in your array.
As an example, you can create an array with an array inside (all integers) and make
For in cycle
Inside cycle - if else statement
If array[0][0].count == 0 {
array[0][i].append(integer)
} else {}
As soon as you reach the goal above, it will be easy to put all the data in the dictionary, like you’ve mentioned before. Reach the separation goal firstly