Task: Program Execution
Input (English): w, b, w, m, j, d, q, 47, 221, b, 201, f
Output (English): 0, 1, 2, 4, 7