The correct option is C Sabu asked Chaudhary if his brain worked like a computer.
When a sentence is changed from direct to indirect speech, the subject
pronoun, verbs and tense forms also change. (This is because the speech is reported by someone else, and the tense
of the direct speech goes one tense back as it's spoken at a later time
now.) The meaning of the sentence
should not be changed.
An interrogative sentence, when changed to
reported speech, does not function as an interrogative anymore. It turns into
a declarative sentence.
So, the word order of an interrogative changes to that of an assertive/declaratory sentence.
Option B: This sentence is the correct narration of the direct speech, as
'said to' has changed to 'asked' (to keep the meaning of the sentence
intact). The question form 'does your' is changed to the declarative form
'if his brain': 'your' changes to 'his' because 'Chaudhary' is a third person. (Earlier, the name was in second person as the speech was directed towards the person.)
'Work' is changed to 'worked', as the tense changes from simple present to simple past.
Hence B is correct.
Option A is incorrect because the possessive adjective 'your' has not been changed.
Option C is incorrect because 'did worked' is grammatically incorrect, it's either 'did work' or 'worked'.
Option D is incorrect because the question form 'did his' is not required in the reported speech.
'If'
is added in reported speech, as it refers to a conditional sentence. It isn't
required in direct speech as the meaning is made clear by 'does'.