Task: Program Execution
Input (English): ftAPBM, QUAPKh
Output (English): AP