Read the following table and find the relevant code for '
472938 ' as per the conditions given:
Conditions:1. If both the first and last digits of the number are odd digits, then both are to be coded as '
S '.
2. If both the first and last digits of the number are even digits, then both are to be coded as '
Z '.
3. If one among the first and last digits is odd and the other one is even, then the first digit has to be coded as '
Q ' and the last digit as '
W '.