Task: Program Execution
Input (English): g, N, A, z
Output (English): [['g', 'N', 'A'], ['g', 'N', 'z'], ['g', 'A', 'z'], ['N', 'A', 'z']]