Task: Program Execution
Input (English): 2, 3, ['3821', 'D', 'w']
Output (English): Dw