The correct option is B may
The correct answer is Option B.
MAY is used to grant permission.
In the given sentence, the speaker is granting the person the permission to leave the room.
Thus it is the correct answer.
The remaining options are incorrect because:
MUST expresses compulsion.
WILL expresses the future tense,
CAN expresses ability.