You have been given an interesting activity by your teacher to encode “MATHS” using the code given below: (A is written as Z, B as Y and so on)
NZGSH
The given word is MATHS
From this, we can see that M = N
A = Z
T = G
H = S
S = H