In a certain code, 15789 is written as AXBTC, 2346 is written as MPDU. How is 23549 written in that code ?

Answer: D. MPXDC

The numbers are coded as shown:
 

1 5 7 8 9 2 3 4 6
A X B T C M P D U

i.e., 2 as M,
3 as P,
5 as X,
4 as D   and
9 as C.
So, 23549 is coded as MPXDC.