Task: Program Execution
Input (English): X, a, n, nearest, Q, N
Output (English): XannearestQN