The pattern shifts each letter backward by 1: A→Z, N→M, D→C, H→G, R→Q, A→Z, etc. Applying to 'TRIVANDRUM': T→S, R→Q, I→H, V→U, A→Z, N→M, D→C, R→Q, U→T, M→L, giving 'SQHUZMCQTL'. Option A is just a city name, C has an O instead of Q, and D has incorrect order.
This code shifts every letter back by 1 position in the alphabet (A→Z wrapping around, N→M, D→C, and so on), which correctly turns ANDHRA PRADESH into ZMCGQZ OQZCDRG. Applying that same −1 shift to TRIVANDRUM (T→S, R→Q, I→H, V→U, A→Z, N→M, D→C, R→Q, U→T, M→L) gives SQHUZMCQTL.