Task: Program Execution
Input (English): A, j
Output (English): -1