Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Couldn't you copy and paste it here? Having to go to a different kata to see information you need in this one shouldn't be needed. Even more when this is the easier one, and the normal order for doing this should be easier first, harder later, not the other way around.
I think the harder version has already given the "break-down-couting" of the data example.
It would greatly help with understanding if you would break down the counting of sub-arrays in the description. Maybe something like:
input = {2, 2, 2, 3}
sub-arrays = [2], [2], [2], [3], [2, 2, 2], [2, 3], [2, 2, 2, 3]
total = 7