Correct option is B
Option (b) is the correct meaning of the given idiom.
To burn the midnight oil: means to work or study late into the night, especially with dedication and focus. (Hindi: देर रात तक काम करना या पढ़ाई करना)
Example: He was burning the midnight oil preparing for his board exams.
Other related idioms and meanings:
Up all night – Stayed awake through the entire night.
Put in overtime – Worked extra hours beyond the normal schedule.
Work around the clock – Worked continuously without stopping, day and night.