Task: Program Execution
Input (English): spend, k, m, t, an, I, r, g, first, K
Output (English): spendkmtanIrgfirstK