Task: Program Execution
Input (English): V, M, p, S
Output (English): [['V', 'M', 'p'], ['V', 'M', 'S'], ['V', 'p', 'S'], ['M', 'p', 'S']]