combinatorics Generate all possible combinations of r elements in a given string slice of size n. License MIT