Task: Program Execution
Input (English): q, a, D, A, d
Output (English): [['q', 'a', 'D', 'A'], ['q', 'a', 'D', 'd'], ['q', 'a', 'A', 'd'], ['q', 'D', 'A', 'd'], ['a', 'D', 'A', 'd']]