Task: Program Execution
Input (English): CHAPTER, J, A, H
Output (English): CHAPTERJAH