for example, there are two arrays, one number for each group, and a new array according to size,.
if size is 2, then the result is [1pje 1], [1p3], [1p4], [2pr 1], [2pr 3], [2pr 4], [3pr 1], [4pr 1], [2pr 1], [3jue 2], [4jue 2]];
if size is 3, the result is [1pr 1 parol 3], [1je 1pr 4], [1je 3pr 4]. And so on]
is probably a function fun (arr1,arr2,size) and then gets a new array