Task: Program Execution
Input (English): gallantry, T, Q, a, her,, w, p
Output (English): gallantryTQaher,wp