Task: Program Execution
Input (English): 2, 7, ['2315', '8961', 'P', 'G', '7471', 'j', 'i']
Output (English): ij7471GP8961