Task: Program Execution
Input (English): g
geological
i
r
Ishmael;
d
sperm
Z
Q
Scoresby;
A
j
Output (English): ggeologicalirIshmael;dspermZQScoresby;Aj