Task: Program Execution
Input (English): Z, previous, r
Output (English): Zpreviousr