Task: Program Execution
Input (English): S, i, j, r
Output (English): [['S', 'i', 'j'], ['S', 'i', 'r'], ['S', 'j', 'r'], ['i', 'j', 'r']]