The correct answer is: B. worked
The sentence is in the simple past tense, so the verb must be in the simple past tense as well. The other options are not in the simple past tense.
- Option A: works is in the present tense.
- Option C: was working is in the past progressive tense.
- Option D: had been working is in the past perfect progressive tense.
The simple past tense is used to talk about events that happened in the past and are not happening anymore. In this case, the event is Gandhiji working on the bookcase. He started working on the bookcase after his meal and continued working until he finished it. This is a completed event, so the simple past tense is the correct tense to use.