Task: Program Execution
Input (English): 2, 5, ['887', '1717', '3959', 'D', 'l', 'J']
Output (English): 17173959Dl