The meaning of this question is:
(AC + ~A )( ~BA + B )( ~CB + C)
= ( A~BC + ABC + ~AB )( B~C + C)
= A~BC + ABC + ~AB~C + ~ABC
So, there are four possible situations,
1, Xiao Wang is a science student with good grades in mathematics, not a liberal arts student.
Xiao Wang is both a science student and a liberal arts student, and his math scores are very good.
Xiao Wang is a liberal arts student, not a science student, and his math performance is not good.
4. Xiao Wang is a liberal arts student with good math scores, not a science student.
None of the above four items are contradictory.