In a code language, the numbers/symbols are coded using letters as per the table given below and as per the given conditions.
| Number/ Symbol | 2 | $ | 7 | @ | 4 | # | 9 | & | 1 | ! | 3 | * |
| Code | T | D | C | R | G | B | Y | H | N | J | P | L |
Conditions:
i. If the first element is a symbol and the last a number, the codes for these two (the first and the last elements) are to be interchanged.
ii. If the first element is an odd number and the last an even number, the first and last elements are to be coded as ‘Y’.
iii. If both the second and third elements are perfect squares, the third element is to be coded as the code for the second element.
What will be the code for @ 8 3 9 # 7?