My confusion is about the following programming question:
Given an array of size n, generate and print all possible combinations of r elements in array.<