Pre PYQs CSAT

UPSC Prelims 2018 CSAT question 22

If RAMON is written as 12345 and DINESH as 675849, then HAMAM will be written as