Straight iterator and a generated nested loop to verify combinations