Just got the whatsapp pics from my students. Roughly wrote out the answer in 20 mins on phone and sharing here.
Might be careless. So don't take this as a final answer.
CDCCA
ACBBC
BABCC
BADAD
BCDAB
ADBCC
DDDCB
DADBC
edited one careless mistake
Congrats to those who bought my book. First question data came out from it :)