This is an example of algorithms that iterate all r combinations of an ArrayList of n elements.
r
n
For each combination, I should know the indi